The Vault: a Jlerts custom widget
=================================

Shows the Vault, Jlerts' jackpot pot, on your stream: a big vault door with the amount underneath. Every time a lost
bet goes in, the number counts up, a "+250" pops up and a few coins drop in with a clink. When someone cracks it
(three treasure chests on the slots, a heist, or anything else that wins it) the wheel spins, the bolts clunk, the
door swings open and coins pour out with their name and how much they took.

Heists (Heist the Vault in Jlerts) play on it too: a lucky break (!heist on its own) rattles the dial left and
right; a guessed combination (!heist 12 09 54 99, when you've set one in Jlerts) turns the dial to each number, one by
one, with a click for each right one. A wrong number sets off the alarm (flashing lights, a siren and the funny
line); all four right and the door swings open. Jlerts waits for this show before saying in chat how it went.

It only shows the Vault: it never changes it, so it needs no ticks in its settings. It never knows your
combination either: Jlerts only tells it how many numbers were right.

Add it to Jlerts
1. Unzip this folder somewhere it can stay (for example Documents\Jlerts widgets\The Vault).
2. In Jlerts: Widgets -> + New widget -> Custom widget (HTML / CSS / JS).
3. Widget folder -> Choose folder... and pick this folder. Its settings appear underneath.
4. Drag it onto your overlay (440 x 540). To change its size, drag the edges of its box on the canvas.

The Vault needs to be on: Jlerts -> Community Hub -> Games & shop -> The Vault. Its amount, odds, lock and history
are all there. Needs the latest Jlerts.

What it shows
- The amount, in your points' name.
- "1 in 50,000 chance to crack it" (your own odds), or why it can't be won right now: Locked (with a padlock on the
  door), "Can be cracked from 10,000", or "Already cracked this stream".
- A line of your own under it (or none), and who cracked it last.

Trying it
- You and your mods: type !vault test in chat to see the door open, !vault test2 for a pretend guess that gets all
  four numbers right (the dial turns to each, then the door opens), !vault test heist for a pretend guess (two
  right, then the alarm) and !vault test alarm for a pretend lucky break that fails. Nothing changes in the Vault
  (Jlerts also answers with the amount, as !vault always does).
- With Heist the Vault on: !heist test plays a pretend guess that sets off the alarm, !heist test2 one that gets all
  four numbers right and opens the door (made-up numbers, never your real combination; no points taken).

Settings
- Style: Steel, Gold, Neon or Pirate.
- Title (and a tick box to hide it), the line under the amount, whether to show the odds, who cracked it last, and the
  "+250" pop-ups.
- The word under the amount is whatever you call your points (Community Hub, "They're called"): it follows by itself.
- Play heists on the Vault (on by default), how long the door stays open after a win, sounds, the coin clink,
  volume.

Sounds (sounds folder): clink, unlock, cracked, dial, click and siren. Made by make-sounds.py; swap any for your
own .wav with the same name.
